// 主容器
import MainContent from '@/components/common/MainContent'
// 子容器
import Survey from './survey'
import SurveyNew from './survey-new'
import DataStatistic from './data-statistic'
import SurveyResult from './survey-result'
import SurveyRank from './survey-rank'

const router = {
  path: '/survey',
  name: 'Survey',
  component: MainContent,
  children: [
    ...Survey.routers,
    ...SurveyNew.routers,
    ...DataStatistic.routers,
    ...SurveyResult.routers,
    ...SurveyRank.routers
  ]
}

const menu = [
  Survey.menu,
  SurveyNew.menu,
  DataStatistic.menu,
  SurveyResult.menu,
  SurveyRank.menu
]

export default {
  router,
  menu
}
